using System;
using UnityEngine;

[LuaExport]

public class LuaMonoBehaviour : MonoBehaviour
{
    

<#list fields as field>
    public Action<GameObject> ${field}Proxy; 
</#list>
<#list fields as field>  
    void ${field}()
    {
        if (this.${field}Proxy != null)
            ${field}Proxy(this.gameObject);
    }
 </#list>  
    void OnDestroy()
    {
        <#list fields as field>  
        this.${field}Proxy = null;
        </#list> 
    }
}